package mt.demo.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by watson on 2015/9/24.
 */
public interface DaoBase<T> {
        int addDomain(T domain);
        int deleteDomain(T domain);
        int updateDomain(T domain);
        int getDomainCount();
        T getDomainById(int id);
    //根据条件获取数据
    List<T> getDomainByCondition(@Param("domain") T domain);

}
